﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FleetCode.Model
{
    [Serializable]
    public class Fleet
    {
        public Ship s1 { get; set; }
        public Ship s2 { get; set; }
        public Ship s3 { get; set; }
        public Ship s4 { get; set; }
        public Ship s5 { get; set; }
        public Ship s6 { get; set; }

        public Fleet(Grabacr07.KanColleWrapper.Models.Fleet fleet)
        {
            s1 = Ship.Convert(fleet.Ships.FirstOrDefault());
            s2 = Ship.Convert(fleet.Ships.Skip(1).FirstOrDefault());
            s3 = Ship.Convert(fleet.Ships.Skip(2).FirstOrDefault());
            s4 = Ship.Convert(fleet.Ships.Skip(3).FirstOrDefault());
            s5 = Ship.Convert(fleet.Ships.Skip(4).FirstOrDefault());
            s6 = Ship.Convert(fleet.Ships.Skip(5).FirstOrDefault());
        }
    }
}
